package com.atguigu.exam.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@TableName("appointment")
@AllArgsConstructor
@Schema(description = "预约老师答疑")
@NoArgsConstructor
public class Appointment {

    @TableId(type = IdType.AUTO) //对应mysql里面的主键自增
    private Long id;
    private String username;
    private String clazz;
    private String date;
    private String time;
    private String teacherName;
}